package cn.muqingfeng.api.to;

import java.util.List;

import com.google.gson.annotations.SerializedName;

public class BaseArticleDetailTO {
	@SerializedName("data")
	private ArticleDetailListTO data;

	public ArticleDetailListTO getData() {
		return data;
	}

	public void setData(ArticleDetailListTO data) {
		this.data = data;
	}

	public List<ArticleDetailFloorsInfoTO> getPostList() {
		if (data != null && data.getDetail() != null) {
			return data.getDetail().getPostlist();
		}
		return null;
	}

	public ArticleDetailThreadTO getThread() {
		if (data != null && data.getDetail() != null) {
			return data.getDetail().getThreadInfo();
		}
		return null;
	}

	public int getCount() {
		if (data != null && data.getDetail() != null) {
			return data.getDetail().getPageSize();
		}
		return 0;
	}
}
